<template>
	<om-page :title="pageTitle">
		<view class="page__bd">
			<om-wing-blank size="default">
				<uni-list>
					<view v-for="(item, index) in items" :key="index">
						<uni-list-item>
							<view class="tui-flex">
								<view class="tui-center tui-col-6 om-label">{{ item.name }}</view>
								<view class="tui-center tui-col-6 om-content">{{ item.value ? item.value : '' }}</view>
							</view>
						</uni-list-item>
					</view>
				</uni-list>
			</om-wing-blank>
		</view>
		<om-hover-button openType="switchTab" title="返回首页" url="../../main/main/main"></om-hover-button>
	</om-page>
</template>

<script>
export default {
	data() {
		return {
			items: [],
			pageTitle :""
		};
	},
	methods: {},
	onLoad(options) {
		this.pageTitle = options.title || '详细信息'
		uni.setNavigationBarTitle({
			title: this.pageTitle
		});
		let durl = options.durl;
		if (durl) {
			let _that = this;
			_that.om.request(durl).then(res=>{
				_that.items = d.value;
			})
		}
	}
};
</script>

<style></style>
